home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
System Booster
/
System Booster.iso
/
Archives
/
Shells
/
SmartFiles.readme
< prev
next >
Wrap
Text File
|
1996-09-26
|
2KB
|
39 lines
Short: Two smart scripts for handling files
Author: benchie@cup.portal.com (The BenchMaster)
Uploader: benchie@cup.portal.com
Type: utils/shell
Requires: some DOS literacy, ARexx
Ever had a huge directory of files and wanted to do the exact same thing to
each one of them? Did you do them all by hand, proclaiming all the while
that there MUST be a better way?! Well, there is.
Most people aren't into using variables with scriptfiles, but that's the
secret to having (mere) DOS do everything for you. It's just that you need a
template to use, and that's what this is. Just fill in the blanks with the
same commands you'd use for ONE of the files, and this reads the whole
directory then does the same routine to EVERY file, very nice.
The second enclosed script in an ARexx file, and it does this:
Let's say you have 500 files in a directory and a list of 250 of them that
you want to move (Rename) to a different directory. Hmm, might take a while
by hand, eh? Edit the enclosed ARexx file to inject a "Rename" before every
entry on the list and a destination path after each entry. RXecute the ARexx
file and then simply Execute the outputted file. Piece o' cake. - TBM
============================= Archive contents =============================
Original Packed Ratio Date Time Name
-------- ------- ----- --------- -------- -------------
45 45 0.0% 01-Sep-95 01:23:46 file_id.diz
882 458 48.0% 29-Sep-95 13:37:14 Inject.rex
2641 1290 51.1% 30-Sep-95 14:19:24 ReadMe.txt
5404 2267 58.0% 30-Sep-95 14:25:56 SmartDOS.txt
4809 2476 48.5% 30-Sep-95 16:29:56 OtherStuff.tbm
-------- ------- ----- --------- --------
13781 6536 52.5% 01-Oct-95 17:54:30 5 files